#ifndef __USART4_H
#define __USART4_H

#include "stm32f10x.h"

#define USART2_RX_BUFF_SIZE  256

extern u8 USART2_RX_BUF[USART2_RX_BUFF_SIZE];
extern u16 USART2_RX_CNT;
extern u8 USART2_RX_FLAG;

void USART2_Init(u32 bound);
void USART2_SendChar(char ch);
void USART2_SendString(const char *str);
void USART2_Printf(const char *format, ...);

#endif
